#include "httpserver.hpp"
#include "log.hpp"
#include <iostream>
#include <memory>
#include <unordered_map>
using namespace std;

int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        exit(1);
    }
    uint16_t port = stoi(argv[1]);
    unique_ptr<HTTPServer> svr(new HTTPServer(port));
    svr->start();
    return 0;
}